import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import '../../styles/common.css'
import NetWorking from '../../utils/networking'
import { WechatPlugin } from 'vux'
Vue.use(WechatPlugin)
Vue.use(NetWorking)
Vue.use(VueRouter)


import studentReport from './studentReport'
import demoClass from './demoClass'
import thanksPage from './thanksPage'

const routes = [
  { path: '/studentReport', component: studentReport },
	{ path: '/demoClass', component: demoClass },
	{ path: '/thanksPage', name: 'thanksPage', component: thanksPage }
]

// 3. 创建 router 实例，然后传 `routes` 配置
// 你还可以传别的配置参数, 不过先这么简单着吧。
var router =  new VueRouter({
    routes
})

new Vue({
	el: '#app',
	router,
	template: '<App/>',
	components: { App }
})
